.class public Lcom/estrongs/android/ui/dialog/t;
.super Ljava/lang/Object;
.source "DefaultWindowAddDialog.java"


# instance fields
.field private a:Lcom/estrongs/android/ui/dialog/q;

.field private b:Landroid/content/Context;

.field c:Lcom/estrongs/android/ui/adapter/d;


# direct methods
.method public constructor <init>(Landroid/content/Context;Ljava/util/Map;Ljava/util/Map;)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/Integer;",
            ">;)V"
        }
    .end annotation

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/t;->b:Landroid/content/Context;

    .line 3
    invoke-direct {p0, p2, p3}, Lcom/estrongs/android/ui/dialog/t;->a(Ljava/util/Map;Ljava/util/Map;)V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/ui/dialog/t;)Landroid/content/Context;
    .locals 0

    .line 1
    iget-object p0, p0, Lcom/estrongs/android/ui/dialog/t;->b:Landroid/content/Context;

    return-object p0
.end method

.method private a(Ljava/util/Map;Ljava/util/Map;)V
    .locals 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;",
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/Integer;",
            ">;)V"
        }
    .end annotation

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/t;->b:Landroid/content/Context;

    invoke-static {v0}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0c00dd

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    const v1, 0x7f0906eb

    .line 3
    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Lcom/estrongs/android/ui/view/NaviListView;

    .line 4
    new-instance v2, Lcom/estrongs/android/ui/dialog/t$a;

    invoke-direct {v2, p0, v1}, Lcom/estrongs/android/ui/dialog/t$a;-><init>(Lcom/estrongs/android/ui/dialog/t;Lcom/estrongs/android/ui/view/NaviListView;)V

    .line 5
    new-instance v3, Lcom/estrongs/android/ui/adapter/d;

    iget-object v4, p0, Lcom/estrongs/android/ui/dialog/t;->b:Landroid/content/Context;

    invoke-direct {v3, v4, v2, p1, p2}, Lcom/estrongs/android/ui/adapter/d;-><init>(Landroid/content/Context;Landroid/os/Handler;Ljava/util/Map;Ljava/util/Map;)V

    iput-object v3, p0, Lcom/estrongs/android/ui/dialog/t;->c:Lcom/estrongs/android/ui/adapter/d;

    .line 6
    invoke-virtual {v1, v3}, Landroid/widget/ExpandableListView;->setAdapter(Landroid/widget/ExpandableListAdapter;)V

    const/4 p1, 0x1

    .line 7
    invoke-virtual {v1, p1}, Landroid/widget/ExpandableListView;->setItemsCanFocus(Z)V

    .line 8
    new-instance p1, Lcom/estrongs/android/ui/dialog/t$b;

    invoke-direct {p1, p0}, Lcom/estrongs/android/ui/dialog/t$b;-><init>(Lcom/estrongs/android/ui/dialog/t;)V

    invoke-virtual {v1, p1}, Landroid/widget/ExpandableListView;->setOnGroupClickListener(Landroid/widget/ExpandableListView$OnGroupClickListener;)V

    .line 9
    new-instance p1, Lcom/estrongs/android/ui/dialog/q$n;

    iget-object p2, p0, Lcom/estrongs/android/ui/dialog/t;->b:Landroid/content/Context;

    invoke-direct {p1, p2}, Lcom/estrongs/android/ui/dialog/q$n;-><init>(Landroid/content/Context;)V

    .line 10
    invoke-virtual {p1, v0}, Lcom/estrongs/android/ui/dialog/q$n;->a(Landroid/view/View;)Lcom/estrongs/android/ui/dialog/q$n;

    const p2, 0x7f1102c5

    invoke-virtual {p1, p2}, Lcom/estrongs/android/ui/dialog/q$n;->b(I)Lcom/estrongs/android/ui/dialog/q$n;

    invoke-virtual {p1}, Lcom/estrongs/android/ui/dialog/q$n;->a()Lcom/estrongs/android/ui/dialog/q;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/t;->a:Lcom/estrongs/android/ui/dialog/q;

    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    .line 12
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/t;->a:Lcom/estrongs/android/ui/dialog/q;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q;->dismiss()V

    return-void
.end method

.method public a(Landroid/content/DialogInterface$OnDismissListener;)V
    .locals 1

    .line 11
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/t;->a:Lcom/estrongs/android/ui/dialog/q;

    invoke-virtual {v0, p1}, Landroid/app/Dialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V

    return-void
.end method

.method public a(Ljava/lang/String;)Z
    .locals 5

    const/4 v0, 0x0

    if-nez p1, :cond_0

    return v0

    .line 13
    :cond_0
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->s1(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_1

    const-string v1, "/"

    .line 14
    invoke-virtual {p1, v1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_1

    const-string v2, "#"

    invoke-virtual {p1, v2}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v2

    if-nez v2, :cond_1

    .line 15
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 16
    :cond_1
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v1

    invoke-virtual {v1}, Lcom/estrongs/android/pop/l;->v()Ljava/util/ArrayList;

    move-result-object v1

    .line 17
    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v2

    const/16 v3, 0xc

    const/4 v4, 0x1

    if-lt v2, v3, :cond_2

    .line 18
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/t;->b:Landroid/content/Context;

    const v1, 0x7f110aaa

    invoke-static {p1, v1, v4}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V

    return v0

    .line 19
    :cond_2
    invoke-interface {v1, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_3

    .line 20
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/t;->b:Landroid/content/Context;

    const v1, 0x7f1106cc

    invoke-static {p1, v1, v4}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V

    return v0

    .line 21
    :cond_3
    invoke-interface {v1, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 22
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p1

    invoke-virtual {p1, v1}, Lcom/estrongs/android/pop/l;->g(Ljava/util/List;)V

    return v4
.end method

.method public b()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/t;->a:Lcom/estrongs/android/ui/dialog/q;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q;->show()V

    return-void
.end method
